Package pl.wendigo.chrome.api.page

Contains DevTools Protocol Page domain implementation accessible via PageDomain class.

Types

AddCompilationCacheRequest
Link copied to clipboard
data class AddCompilationCacheRequest(url: String, data: String)
Represents request frame that can be used with Page#addCompilationCache operation call.
AddScriptToEvaluateOnLoadRequest
Link copied to clipboard
data class AddScriptToEvaluateOnLoadRequest(scriptSource: String)
Represents request frame that can be used with Page#addScriptToEvaluateOnLoad operation call.
AddScriptToEvaluateOnLoadResponse
Link copied to clipboard
data class AddScriptToEvaluateOnLoadResponse(identifier: ScriptIdentifier)
Represents response frame that is returned from Page#addScriptToEvaluateOnLoad operation call.
AddScriptToEvaluateOnNewDocumentRequest
Link copied to clipboard
data class AddScriptToEvaluateOnNewDocumentRequest(source: String, worldName: String?)
Represents request frame that can be used with Page#addScriptToEvaluateOnNewDocument operation call.
data class AddScriptToEvaluateOnNewDocumentResponse(identifier: ScriptIdentifier)
Represents response frame that is returned from Page#addScriptToEvaluateOnNewDocument operation call.
AdFrameType
Link copied to clipboard
enum AdFrameType : Enum<AdFrameType>
Indicates whether a frame has been identified as an ad.
AppManifestError
Link copied to clipboard
data class AppManifestError(message: String, critical: Int, line: Int, column: Int)
Error while paring app manifest.
AppManifestParsedProperties
Link copied to clipboard
data class AppManifestParsedProperties(scope: String)
Parsed app manifest properties.
CaptureScreenshotRequest
Link copied to clipboard
data class CaptureScreenshotRequest(format: String?, quality: Int?, clip: Viewport?, fromSurface: Boolean?, captureBeyondViewport: Boolean?)
Represents request frame that can be used with Page#captureScreenshot operation call.
CaptureScreenshotResponse
Link copied to clipboard
data class CaptureScreenshotResponse(data: String)
Represents response frame that is returned from Page#captureScreenshot operation call.
CaptureSnapshotRequest
Link copied to clipboard
data class CaptureSnapshotRequest(format: String?)
Represents request frame that can be used with Page#captureSnapshot operation call.
CaptureSnapshotResponse
Link copied to clipboard
data class CaptureSnapshotResponse(data: String)
Represents response frame that is returned from Page#captureSnapshot operation call.
ClientNavigationDisposition
Link copied to clipboard
ClientNavigationReason
Link copied to clipboard
enum ClientNavigationReason : Enum<ClientNavigationReason>
CompilationCacheParams
Link copied to clipboard
data class CompilationCacheParams(url: String, eager: Boolean?)
Per-script compilation cache parameters for Page.produceCompilationCache
CompilationCacheProducedEvent
Link copied to clipboard
data class CompilationCacheProducedEvent(url: String, data: String) : Event
Issued for every compilation cache generated.
CreateIsolatedWorldRequest
Link copied to clipboard
data class CreateIsolatedWorldRequest(frameId: FrameId, worldName: String?, grantUniveralAccess: Boolean?)
Represents request frame that can be used with Page#createIsolatedWorld operation call.
CreateIsolatedWorldResponse
Link copied to clipboard
data class CreateIsolatedWorldResponse(executionContextId: ExecutionContextId)
Represents response frame that is returned from Page#createIsolatedWorld operation call.
CrossOriginIsolatedContextType
Link copied to clipboard
Indicates whether the frame is cross-origin isolated and why it is the case.
DeleteCookieRequest
Link copied to clipboard
data class DeleteCookieRequest(cookieName: String, url: String)
Represents request frame that can be used with Page#deleteCookie operation call.
DialogType
Link copied to clipboard
enum DialogType : Enum<DialogType>
Javascript dialog type.
DocumentOpenedEvent
Link copied to clipboard
data class DocumentOpenedEvent(frame: Frame) : Event
Fired when opening document to write to.
DomContentEventFiredEvent
Link copied to clipboard
data class DomContentEventFiredEvent(timestamp: MonotonicTime) : Event
DownloadProgressEvent
Link copied to clipboard
data class DownloadProgressEvent(guid: String, totalBytes: Double, receivedBytes: Double, state: String) : Event
Fired when download makes progress.
DownloadWillBeginEvent
Link copied to clipboard
data class DownloadWillBeginEvent(frameId: FrameId, guid: String, url: String, suggestedFilename: String) : Event
Fired when page is about to start a download.
FileChooserOpenedEvent
Link copied to clipboard
data class FileChooserOpenedEvent(frameId: FrameId, backendNodeId: BackendNodeId, mode: String) : Event
Emitted only when page.interceptFileChooser is enabled.
FontFamilies
Link copied to clipboard
data class FontFamilies(standard: String?, fixed: String?, serif: String?, sansSerif: String?, cursive: String?, fantasy: String?, pictograph: String?)
Generic font families collection.
FontSizes
Link copied to clipboard
data class FontSizes(standard: Int?, fixed: Int?)
Default font sizes.
Frame
Link copied to clipboard
data class Frame(id: FrameId, parentId: String?, loaderId: LoaderId, name: String?, url: String, urlFragment: String?, domainAndRegistry: String, securityOrigin: String, mimeType: String, unreachableUrl: String?, adFrameType: AdFrameType?, secureContextType: SecureContextType, crossOriginIsolatedContextType: CrossOriginIsolatedContextType, gatedAPIFeatures: List<GatedAPIFeatures>)
Information about the Frame on the page.
FrameAttachedEvent
Link copied to clipboard
data class FrameAttachedEvent(frameId: FrameId, parentFrameId: FrameId, stack: StackTrace?) : Event
Fired when frame has been attached to its parent.
FrameClearedScheduledNavigationEvent
Link copied to clipboard
data class FrameClearedScheduledNavigationEvent(frameId: FrameId) : Event
Fired when frame no longer has a scheduled navigation.
FrameDetachedEvent
Link copied to clipboard
data class FrameDetachedEvent(frameId: FrameId, reason: String) : Event
Fired when frame has been detached from its parent.
FrameId
Link copied to clipboard
typealias FrameId = String

Unique frame identifier.

FrameNavigatedEvent
Link copied to clipboard
data class FrameNavigatedEvent(frame: Frame) : Event
Fired once navigation of the frame has completed.
FrameRequestedNavigationEvent
Link copied to clipboard
data class FrameRequestedNavigationEvent(frameId: FrameId, reason: ClientNavigationReason, url: String, disposition: ClientNavigationDisposition) : Event
Fired when a renderer-initiated navigation is requested.
FrameResource
Link copied to clipboard
data class FrameResource(url: String, type: ResourceType, mimeType: String, lastModified: TimeSinceEpoch?, contentSize: Double?, failed: Boolean?, canceled: Boolean?)
Information about the Resource on the page.
FrameResourceTree
Link copied to clipboard
data class FrameResourceTree(frame: Frame, childFrames: List<FrameResourceTree>?, resources: List<FrameResource>)
Information about the Frame hierarchy along with their cached resources.
FrameScheduledNavigationEvent
Link copied to clipboard
data class FrameScheduledNavigationEvent(frameId: FrameId, delay: Double, reason: ClientNavigationReason, url: String) : Event
Fired when frame schedules a potential navigation.
FrameStartedLoadingEvent
Link copied to clipboard
data class FrameStartedLoadingEvent(frameId: FrameId) : Event
Fired when frame has started loading.
FrameStoppedLoadingEvent
Link copied to clipboard
data class FrameStoppedLoadingEvent(frameId: FrameId) : Event
Fired when frame has stopped loading.
FrameTree
Link copied to clipboard
data class FrameTree(frame: Frame, childFrames: List<FrameTree>?)
Information about the Frame hierarchy.
GatedAPIFeatures
Link copied to clipboard
enum GatedAPIFeatures : Enum<GatedAPIFeatures>
GenerateTestReportRequest
Link copied to clipboard
data class GenerateTestReportRequest(message: String, group: String?)
Represents request frame that can be used with Page#generateTestReport operation call.
GetAppManifestResponse
Link copied to clipboard
data class GetAppManifestResponse(url: String, errors: List<AppManifestError>, data: String?, parsed: AppManifestParsedProperties?)
Represents response frame that is returned from Page#getAppManifest operation call.
GetCookiesResponse
Link copied to clipboard
data class GetCookiesResponse(cookies: List<Cookie>)
Represents response frame that is returned from Page#getCookies operation call.
GetFrameTreeResponse
Link copied to clipboard
data class GetFrameTreeResponse(frameTree: FrameTree)
Represents response frame that is returned from Page#getFrameTree operation call.
GetInstallabilityErrorsResponse
Link copied to clipboard
data class GetInstallabilityErrorsResponse(installabilityErrors: List<InstallabilityError>)
Represents response frame that is returned from Page#getInstallabilityErrors operation call.
GetLayoutMetricsResponse
Link copied to clipboard
data class GetLayoutMetricsResponse(layoutViewport: LayoutViewport, visualViewport: VisualViewport, contentSize: Rect)
Represents response frame that is returned from Page#getLayoutMetrics operation call.
GetManifestIconsResponse
Link copied to clipboard
data class GetManifestIconsResponse(primaryIcon: String?)
Represents response frame that is returned from Page#getManifestIcons operation call.
GetNavigationHistoryResponse
Link copied to clipboard
data class GetNavigationHistoryResponse(currentIndex: Int, entries: List<NavigationEntry>)
Represents response frame that is returned from Page#getNavigationHistory operation call.
GetPermissionsPolicyStateRequest
Link copied to clipboard
data class GetPermissionsPolicyStateRequest(frameId: FrameId)
Represents request frame that can be used with Page#getPermissionsPolicyState operation call.
GetPermissionsPolicyStateResponse
Link copied to clipboard
data class GetPermissionsPolicyStateResponse(states: List<PermissionsPolicyFeatureState>)
Represents response frame that is returned from Page#getPermissionsPolicyState operation call.
GetResourceContentRequest
Link copied to clipboard
data class GetResourceContentRequest(frameId: FrameId, url: String)
Represents request frame that can be used with Page#getResourceContent operation call.
GetResourceContentResponse
Link copied to clipboard
data class GetResourceContentResponse(content: String, base64Encoded: Boolean)
Represents response frame that is returned from Page#getResourceContent operation call.
GetResourceTreeResponse
Link copied to clipboard
data class GetResourceTreeResponse(frameTree: FrameResourceTree)
Represents response frame that is returned from Page#getResourceTree operation call.
HandleJavaScriptDialogRequest
Link copied to clipboard
data class HandleJavaScriptDialogRequest(accept: Boolean, promptText: String?)
Represents request frame that can be used with Page#handleJavaScriptDialog operation call.
InstallabilityError
Link copied to clipboard
data class InstallabilityError(errorId: String, errorArguments: List<InstallabilityErrorArgument>)
The installability error
InstallabilityErrorArgument
Link copied to clipboard
data class InstallabilityErrorArgument(name: String, value: String)
JavascriptDialogClosedEvent
Link copied to clipboard
data class JavascriptDialogClosedEvent(result: Boolean, userInput: String) : Event
Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been closed.
JavascriptDialogOpeningEvent
Link copied to clipboard
data class JavascriptDialogOpeningEvent(url: String, message: String, type: DialogType, hasBrowserHandler: Boolean, defaultPrompt: String?) : Event
Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.
LayoutViewport
Link copied to clipboard
data class LayoutViewport(pageX: Int, pageY: Int, clientWidth: Int, clientHeight: Int)
Layout viewport position and dimensions.
LifecycleEventEvent
Link copied to clipboard
data class LifecycleEventEvent(frameId: FrameId, loaderId: LoaderId, name: String, timestamp: MonotonicTime) : Event
Fired for top level page lifecycle events such as navigation, load, paint, etc.
LoadEventFiredEvent
Link copied to clipboard
data class LoadEventFiredEvent(timestamp: MonotonicTime) : Event
NavigatedWithinDocumentEvent
Link copied to clipboard
data class NavigatedWithinDocumentEvent(frameId: FrameId, url: String) : Event
Fired when same-document navigation happens, e.g.
NavigateRequest
Link copied to clipboard
data class NavigateRequest(url: String, referrer: String?, transitionType: TransitionType?, frameId: FrameId?, referrerPolicy: ReferrerPolicy?)
Represents request frame that can be used with Page#navigate operation call.
NavigateResponse
Link copied to clipboard
data class NavigateResponse(frameId: FrameId, loaderId: LoaderId?, errorText: String?)
Represents response frame that is returned from Page#navigate operation call.
NavigateToHistoryEntryRequest
Link copied to clipboard
data class NavigateToHistoryEntryRequest(entryId: Int)
Represents request frame that can be used with Page#navigateToHistoryEntry operation call.
NavigationEntry
Link copied to clipboard
data class NavigationEntry(id: Int, url: String, userTypedURL: String, title: String, transitionType: TransitionType)
Navigation history entry.
PageDomain
Link copied to clipboard
class PageDomain : Domain
Actions and events related to the inspected page belong to the page domain.
PermissionsPolicyBlockLocator
Link copied to clipboard
data class PermissionsPolicyBlockLocator(frameId: FrameId, blockReason: PermissionsPolicyBlockReason)
PermissionsPolicyBlockReason
Link copied to clipboard
Reason for a permissions policy feature to be disabled.
PermissionsPolicyFeature
Link copied to clipboard
enum PermissionsPolicyFeature : Enum<PermissionsPolicyFeature>
All Permissions Policy features.
PermissionsPolicyFeatureState
Link copied to clipboard
data class PermissionsPolicyFeatureState(feature: PermissionsPolicyFeature, allowed: Boolean, locator: PermissionsPolicyBlockLocator?)
PrintToPDFRequest
Link copied to clipboard
data class PrintToPDFRequest(landscape: Boolean?, displayHeaderFooter: Boolean?, printBackground: Boolean?, scale: Double?, paperWidth: Double?, paperHeight: Double?, marginTop: Double?, marginBottom: Double?, marginLeft: Double?, marginRight: Double?, pageRanges: String?, ignoreInvalidPageRanges: Boolean?, headerTemplate: String?, footerTemplate: String?, preferCSSPageSize: Boolean?, transferMode: String?)
Represents request frame that can be used with Page#printToPDF operation call.
PrintToPDFResponse
Link copied to clipboard
data class PrintToPDFResponse(data: String, stream: StreamHandle?)
Represents response frame that is returned from Page#printToPDF operation call.
ProduceCompilationCacheRequest
Link copied to clipboard
data class ProduceCompilationCacheRequest(scripts: List<CompilationCacheParams>)
Represents request frame that can be used with Page#produceCompilationCache operation call.
ReferrerPolicy
Link copied to clipboard
enum ReferrerPolicy : Enum<ReferrerPolicy>
The referring-policy used for the navigation.
ReloadRequest
Link copied to clipboard
data class ReloadRequest(ignoreCache: Boolean?, scriptToEvaluateOnLoad: String?)
Represents request frame that can be used with Page#reload operation call.
RemoveScriptToEvaluateOnLoadRequest
Link copied to clipboard
data class RemoveScriptToEvaluateOnLoadRequest(identifier: ScriptIdentifier)
Represents request frame that can be used with Page#removeScriptToEvaluateOnLoad operation call.
data class RemoveScriptToEvaluateOnNewDocumentRequest(identifier: ScriptIdentifier)
Represents request frame that can be used with Page#removeScriptToEvaluateOnNewDocument operation call.
ScreencastFrameAckRequest
Link copied to clipboard
data class ScreencastFrameAckRequest(sessionId: Int)
Represents request frame that can be used with Page#screencastFrameAck operation call.
ScreencastFrameEvent
Link copied to clipboard
data class ScreencastFrameEvent(data: String, metadata: ScreencastFrameMetadata, sessionId: Int) : Event
Compressed image data requested by the startScreencast.
ScreencastFrameMetadata
Link copied to clipboard
data class ScreencastFrameMetadata(offsetTop: Double, pageScaleFactor: Double, deviceWidth: Double, deviceHeight: Double, scrollOffsetX: Double, scrollOffsetY: Double, timestamp: TimeSinceEpoch?)
Screencast frame metadata.
ScreencastVisibilityChangedEvent
Link copied to clipboard
data class ScreencastVisibilityChangedEvent(visible: Boolean) : Event
Fired when the page with currently enabled screencast was shown or hidden `.
ScriptIdentifier
Link copied to clipboard
typealias ScriptIdentifier = String

Unique script identifier.

SearchInResourceRequest
Link copied to clipboard
data class SearchInResourceRequest(frameId: FrameId, url: String, query: String, caseSensitive: Boolean?, isRegex: Boolean?)
Represents request frame that can be used with Page#searchInResource operation call.
SearchInResourceResponse
Link copied to clipboard
data class SearchInResourceResponse(result: List<SearchMatch>)
Represents response frame that is returned from Page#searchInResource operation call.
SecureContextType
Link copied to clipboard
enum SecureContextType : Enum<SecureContextType>
Indicates whether the frame is a secure context and why it is the case.
SetAdBlockingEnabledRequest
Link copied to clipboard
data class SetAdBlockingEnabledRequest(enabled: Boolean)
Represents request frame that can be used with Page#setAdBlockingEnabled operation call.
SetBypassCSPRequest
Link copied to clipboard
data class SetBypassCSPRequest(enabled: Boolean)
Represents request frame that can be used with Page#setBypassCSP operation call.
SetDeviceMetricsOverrideRequest
Link copied to clipboard
data class SetDeviceMetricsOverrideRequest(width: Int, height: Int, deviceScaleFactor: Double, mobile: Boolean, scale: Double?, screenWidth: Int?, screenHeight: Int?, positionX: Int?, positionY: Int?, dontSetVisibleSize: Boolean?, screenOrientation: ScreenOrientation?, viewport: Viewport?)
Represents request frame that can be used with Page#setDeviceMetricsOverride operation call.
SetDeviceOrientationOverrideRequest
Link copied to clipboard
data class SetDeviceOrientationOverrideRequest(alpha: Double, beta: Double, gamma: Double)
Represents request frame that can be used with Page#setDeviceOrientationOverride operation call.
SetDocumentContentRequest
Link copied to clipboard
data class SetDocumentContentRequest(frameId: FrameId, html: String)
Represents request frame that can be used with Page#setDocumentContent operation call.
SetDownloadBehaviorRequest
Link copied to clipboard
data class SetDownloadBehaviorRequest(behavior: String, downloadPath: String?)
Represents request frame that can be used with Page#setDownloadBehavior operation call.
SetFontFamiliesRequest
Link copied to clipboard
data class SetFontFamiliesRequest(fontFamilies: FontFamilies)
Represents request frame that can be used with Page#setFontFamilies operation call.
SetFontSizesRequest
Link copied to clipboard
data class SetFontSizesRequest(fontSizes: FontSizes)
Represents request frame that can be used with Page#setFontSizes operation call.
SetGeolocationOverrideRequest
Link copied to clipboard
data class SetGeolocationOverrideRequest(latitude: Double?, longitude: Double?, accuracy: Double?)
Represents request frame that can be used with Page#setGeolocationOverride operation call.
SetInterceptFileChooserDialogRequest
Link copied to clipboard
data class SetInterceptFileChooserDialogRequest(enabled: Boolean)
Represents request frame that can be used with Page#setInterceptFileChooserDialog operation call.
SetLifecycleEventsEnabledRequest
Link copied to clipboard
data class SetLifecycleEventsEnabledRequest(enabled: Boolean)
Represents request frame that can be used with Page#setLifecycleEventsEnabled operation call.
SetProduceCompilationCacheRequest
Link copied to clipboard
data class SetProduceCompilationCacheRequest(enabled: Boolean)
Represents request frame that can be used with Page#setProduceCompilationCache operation call.
SetTouchEmulationEnabledRequest
Link copied to clipboard
data class SetTouchEmulationEnabledRequest(enabled: Boolean, configuration: String?)
Represents request frame that can be used with Page#setTouchEmulationEnabled operation call.
SetWebLifecycleStateRequest
Link copied to clipboard
data class SetWebLifecycleStateRequest(state: String)
Represents request frame that can be used with Page#setWebLifecycleState operation call.
StartScreencastRequest
Link copied to clipboard
data class StartScreencastRequest(format: String?, quality: Int?, maxWidth: Int?, maxHeight: Int?, everyNthFrame: Int?)
Represents request frame that can be used with Page#startScreencast operation call.
TransitionType
Link copied to clipboard
enum TransitionType : Enum<TransitionType>
Transition type.
Viewport
Link copied to clipboard
data class Viewport(x: Double, y: Double, width: Double, height: Double, scale: Double)
Viewport for capturing screenshot.
VisualViewport
Link copied to clipboard
data class VisualViewport(offsetX: Double, offsetY: Double, pageX: Double, pageY: Double, clientWidth: Double, clientHeight: Double, scale: Double, zoom: Double?)
Visual viewport position, dimensions, and scale.
WindowOpenEvent
Link copied to clipboard
data class WindowOpenEvent(url: String, windowName: String, windowFeatures: List<String>, userGesture: Boolean) : Event
Fired when a new window is going to be opened, via window.open(), link click, form submission, etc.